package com.speoki.springboot.mapper;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Course {
    private Integer cno;

    private String cname;

    private Integer cpno;

    private Integer ccredit;
 private   List<SC> sc = new ArrayList<>();
//一个课程对应多个成绩
   private List<Student> student = new ArrayList<>();
//一个课程对应多个学生
    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Integer getCpno() {
        return cpno;
    }

    public void setCpno(Integer cpno) {
        this.cpno = cpno;
    }

    public Integer getCcredit() {
        return ccredit;
    }

    public void setCcredit(Integer ccredit) {
        this.ccredit = ccredit;
    }
}